import app from './modules/app.js'
import error from './modules/error.js'
import user from './modules/user.js'
import threadMy from './modules/thread_my.js'
import clientMy from './modules/client_my.js'

// #ifndef VUE3
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
	modules: {
		app,
		error,
		user,
		threadMy,
		clientMy
	}
})
// #endif

// #ifdef VUE3
import {createStore} from 'vuex'
const store = createStore({
	modules: {
		app,
		error,
		user,
		threadMy,
		clientMy
	}
})
// #endif


export default store
